package org.springframework.beans.factory.annotation;

import java.lang.annotation.*;

/**
 * Qualifier注解 用于表面Autowired注解需要bean对象时 bean的名称
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Inherited
@Documented
public @interface Qualifier {
    //自动注入时选择的bean的名字
    String value() default "";
}
